package com.nuanshui.heatedloan.baseservice.rongyun.util;

import com.alibaba.fastjson.JSON;

import java.lang.reflect.Type;

public class GsonUtil {



	public static String toJson(Object obj, Type type) {		
		return JSON.toJSONString(obj);	
	}		
	
	public static Object fromJson(String str,Type type){
		return JSON.parseObject(str, type);
	}
}  
